package com.cosina.game.crystallight.ui.battle;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Canvas;
import android.graphics.drawable.Drawable;

import com.cosina.game.crystallight.ui.battle.drawable.AnimationDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.BoxDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.BuildDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.BuildingDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.CrystalDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.EnemyAndPanelDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.HpAndManeAndScoreDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.MenuDrawable;
import com.cosina.game.crystallight.ui.battle.drawable.ResultDrawable;

public class DrawableManager {
	private final static  List<Drawable> adapters = new ArrayList<Drawable>();

	public static void draw(Canvas canvas){
		for(Drawable drawAdapter : adapters){
			drawAdapter.draw(canvas);
		}
	}
	
	public static void init() {
		adapters.clear();
		adapters.add(new BoxDrawable());
		adapters.add(new BuildDrawable());
		adapters.add(new BuildingDrawable());
		adapters.add(new HpAndManeAndScoreDrawable());
		adapters.add(new EnemyAndPanelDrawable());
		adapters.add(new CrystalDrawable());
		adapters.add(new AnimationDrawable());
		adapters.add(new MenuDrawable());
		adapters.add(new ResultDrawable());
	}
}
